<section class="content">
    <div class="search">
        <form role="form">
            <div class="row">
                <div class="col-xs-3 col-md-4">
                    <div class="form-group">
                        <div class="date-box">
                            <div class="input-group">
                                <div class="input-group-addon">
                                    <i class="fa fa-calendar"></i>
                                </div>
                                <input type="text" ng-model="codeCountModel.startTime" class="form-control pull-right date-picker timerange" placeholder="开始时间" >
                                <span class="line">-</span>
                                <input type="text" ng-model="codeCountModel.endTime" class="form-control pull-right date-picker timerange" placeholder="结束时间"  >
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-1">
                    <div class="form-group" >
                        <input type="text" class="form-control" placeholder="渠道名称" ng-model="codeCountModel.channelName">
                    </div>
                </div>
                <div class="col-xs-2">
                    <select ng-model="codeCountModel.goodsId" class="form-control">
                        <option value="">全部</option>
                        <option ng-repeat="c in goodsList" value="{{c.wxGoodsId}}">{{c.name}}</option>
                    </select>
                </div>
                <div class="col-xs-1">
                    <input type="button" class="btn-primary btn" ng-click="getCodeList(1)" value="查询">
                </div>
                <div class="col-xs-1">
                    <input type="button" class="btn-default btn" value="导出" ng-click="exportExcel()">
                </div>

            </div>
        </form>
    </div>
    <div class="table-box">
        <table class="table table-bordered">
            <thead>
            <tr>
                <th>序号</th>
                <th>渠道名称</th>
                <th>支付时间</th>
                <th>套餐名</th>
                <th>用户昵称</th>
                <th>订单号</th>

            </tr>
            </thead>
            <tbody>
            <tr ng-repeat=" n in codeList">
                <td>{{$index + 1}}</td>
                <td>{{n.channelName}}</td>
                <td>{{n.payTime}}</td>
                <td>{{n.name}}</td>
                <td>{{n.username}}</td>
                <td>{{n.orderNo}}</td>
            </tr>
            <tr ng-if="codeList.length==0">
                <td colspan="9" class="text-center">暂无数据！</td>
            </tr>
            </tbody>
        </table>
        <div class="page-function" ng-if="codeList.length > 0"></div>
    </div>
</section>